﻿using System;
using System.Data;
using System.Web.UI;
using System.Web.UI.WebControls;
using BLL.Access;

namespace Web.UC
{
    public partial class UCLHSuggestYiJians : UserControl
    {
        public string ContentControlID
        {
            get { return Convert.ToString(ViewState["ContentControlID"]); }
            set { ViewState["ContentControlID"] = value; }
        }

        public string FocusContronID
        {
            get { return Convert.ToString(ViewState["FocusContronID"]); }
            set { ViewState["FocusContronID"] = value; }
        }

        public Unit Width
        {
            set { popuTip.Width = value; }
        }

        public void Hide()
        {
            popuTip.ShowOnPageLoad = false;
        }

        protected void Page_Load(object sender, EventArgs e)
        {
        }

        public void LoadSuggestYiJians(int laihanlc)
        {
            lbYiJians.Items.Clear();
            var drc = new SpHelper().P_YSLH_GETDEFAULTLIST(laihanlc).Tables[0].Rows;
            foreach (DataRow item in drc) lbYiJians.Items.Add(Convert.ToString(item["S_NEIRONG"]));
        }

        public void LoadContent(int laihanlc, int laihanlx)
        {
        }
    }
}